"use strict";


const log = require("npmlog");

log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : "info"; // 检测 debug 模式

log.addLevel("success", 2000, { bold: true, fg: "red" }, "SUCCESS");

// 前缀
log.heading = "zhuj";
log.headingStyle = { fg: "red", bg: "white" };

// function index() {
//   log.success("cli", "test");
// }
module.exports = log;
